#ifndef __FISHEYE_INTERFACE_H__
#define __FISHEYE_INTERFACE_H__
#include <stdbool.h>

typedef struct
{
	short *xy;
	unsigned short *fxy;

}map_table;

typedef struct
{
	void * wtab;
	map_table map;
}fisheye_param;

typedef struct {
	int mode;
	int w;
	int h;
	void *init_handle;
	/* init */
	fisheye_param *(*Init_fisheye_param)(int _width, int _height, int undis_mode , int len_mode, bool calibrate , int ratio);
	/* do distort */
	void (*Fisheye_undistort)(const void *src_nv12, int nv12_stride, void *dst_nv12,
			const void *xy, const void *fxy, const void *ctab, int width, int height, int undis_mode);
	/* deinit */
	void (*Deinit_fisheye_param)(fisheye_param* p);
} undistort_handle;
extern void *vbm_get_frame(int poolID, int index);
#endif
